home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Qumana 3.0.1 / Qumana-3.0.1-en-qumana.exe / Qumana.exe / com / qumana / data / Category.hbm.xml < prev    next >
Extensible Markup Language  |  2006-11-27  |  960b  |  48 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
  3. <hibernate-mapping package="com.qumana.data">
  4.     <class
  5.         name="Category"
  6.         table="CATEGORIES">
  7.         
  8.         <id
  9.             name="id"
  10.             column="CATEGORY_ID"
  11.             type="long">
  12.             <generator class="native"/>
  13.         </id>
  14.         
  15.         <many-to-one
  16.             name="blog"
  17.             column="BLOG_ID"
  18.             class="Blog"
  19.             not-null="true"/>
  20.         
  21.         <property
  22.             name="categoryId"
  23.             column="ID"
  24.             type="string"/>
  25.             
  26.         <property
  27.             name="name"
  28.             column="NAME"
  29.             type="string"/>
  30.         
  31.         <property
  32.             name="primary"
  33.             column="IS_PRIMARY"
  34.             type="boolean"/>
  35.             
  36.         <set
  37.             name="posts"
  38.             inverse="true"
  39.             cascade="save-update"
  40.             table="POST_CATEGORIES">
  41.             <key column="CATEGORY_ID"/>
  42.             <many-to-many
  43.                 class="BlogPost"
  44.                 column="POST_ID"/>
  45.         </set>
  46.             
  47.     </class>
  48. </hibernate-mapping>